﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskVessel
    {
        public long DaDeskVessel_id;
        public string Vessel_Name = "";
        public string Vessel_Code = "";
        public string AgrVessel_Code = "";
        public string AgrVessel_Name = "";
        public string AgrVessel_CostCentre = "";

        public DaDeskVessel() { }
        public DaDeskVessel(SqlDataReader rd)
        {
            DaDeskVessel_id = Convert.ToInt32(rd["DaDeskVessel_id"]);
            Vessel_Name = rd["Vessel_Name"] is DBNull ? Vessel_Name : rd["Vessel_Name"].ToString();
            Vessel_Code = rd["Vessel_Code"] is DBNull ? Vessel_Code : rd["Vessel_Code"].ToString();
            AgrVessel_Code = rd["AgrVessel_Code"] is DBNull ? AgrVessel_Code : rd["AgrVessel_Code"].ToString();
            AgrVessel_Name = rd["AgrVessel_Name"] is DBNull ? AgrVessel_Name : rd["AgrVessel_Name"].ToString();
            AgrVessel_CostCentre = rd["AgrVessel_CostCentre"] is DBNull ? AgrVessel_CostCentre : rd["AgrVessel_CostCentre"].ToString();
        }
    }
}
